package com.ruoyi.basics.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住户管理对象 t_household
 * 
 * @author kun
 * @date 2022-10-05
 */
public class Household extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long communityId;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private Long buildingId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String householdname;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 描述 */
    @Excel(name = "描述")
    private String detail;


    private Community community;

    private Building building;

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCommunityId(Long communityId)
    {
        this.communityId = communityId;
    }

    public Long getCommunityId()
    {
        return communityId;
    }
    public void setBuildingId(Long buildingId)
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId()
    {
        return buildingId;
    }
    public void setHouseholdname(String householdname)
    {
        this.householdname = householdname;
    }

    public String getHouseholdname()
    {
        return householdname;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("buildingId", getBuildingId())
            .append("householdname", getHouseholdname())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("detail", getDetail())
            .toString();
    }
}
